﻿/**
 * ZData
 *
 * @author		Allen Chou
 * @version		1.0.0 (last update: Dec 10 2008)
 * @link        http://cjcat.blogspot.com
 * @link		http://cjcat2266.deviantart.com
 */

package idv.cjcat.display.zsorter {
	import flash.display.*;

	/**
	 * The <code>ZData</code> class contains information concerning a display object and its z-depth value relative to the reference container used by a <code>ZSoter</code> object.
	 */
	public class ZData {
		
		/**
		 * The display object.
		 */
		public var obj:DisplayObject;
		/**
		 * The relative z-depth value relative to the reference container used by a <code>ZSoter</code> object.
		 */
		public var cameraZ:Number;
		
		/**
		 * This class is for internal use only and should not be instantiated.
		 */
		public function ZData(obj:DisplayObject, cameraZ:Number) {
			this.obj = obj;
			this.cameraZ = cameraZ;
		}
	}
}